package week8;

public class Student {
    private String name;
    private Transport transport;
    public Student(String name, Transport transport){
        this.name=name;
        this.transport=transport;
    }
    public void showTransportInfo(){
        System.out.println(name+"上学交通工具的信息：");
        System.out.println("交通工具是"+transport.name);
        transport.showMoveMethed();
        transport.showBasicInfo();
    }
}
